/*
 * Decompiled with CFR 0.150.
 * 
 * Could not load the following classes:
 *  cn.hutool.core.util.ObjectUtil
 *  de.felixroske.jfxsupport.FXMLController
 *  javafx.application.Platform
 *  javafx.fxml.FXML
 *  javafx.fxml.Initializable
 *  javafx.scene.layout.AnchorPane
 *  javafx.stage.Modality
 *  org.springframework.beans.factory.annotation.Autowired
 */
package com.gys.controller.salesReceipts;

import cn.hutool.core.util.ObjectUtil;
import com.gys.common.util.CommonUtil;
import com.gys.controller.BaseController;
import com.gys.controller.dataManger.ControllerManger;
import com.gys.controller.salesReceipts.QueryMemberController;
import com.gys.view.salesReceipts.QueryMemberView;
import de.felixroske.jfxsupport.FXMLController;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.application.Platform;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Modality;
import org.springframework.beans.factory.annotation.Autowired;

@FXMLController
public class QueryMemberTipController
extends BaseController
implements Initializable {
    @FXML
    private AnchorPane pane;
    @Autowired
    private QueryMemberController queryMemberController;

    public void initialize(URL location, ResourceBundle resources) {
        ControllerManger.controllerMap.put(this.getClass().getSimpleName(), this);
        this.init();
    }

    @Override
    public void init() {
        if (ObjectUtil.isEmpty(this.pane)) {
            return;
        }
    }

    @FXML
    private void returnAction() {
        this.cancelAction();
    }

    @FXML
    private void cancelAction() {
        this.pane.getScene().getWindow().hide();
        Platform.runLater((Runnable)new Runnable(){

            @Override
            public void run() {
                QueryMemberTipController.this.queryMemberController.init();
                CommonUtil.showView(QueryMemberView.class, Modality.APPLICATION_MODAL);
            }
        });
    }
}

